import { request } from "./request";

//热搜列表(简略)
export function getHotSearchBrief() {
  return request({
    method: "GET",
    url: "/search/hot?&t=" + Date.now(),
  });
}

//搜索
export function getSearchSong(offset, songTitle, type) {
  return request({
    method: "GET",
    url: "/cloudsearch?offset=" + (offset - 1) * 15 + "&limit=15&keywords=" + songTitle + "&type=" + type + "&t=" + Date.now(),
  });
}

//获取音乐 url
export function getSongUrl(songId) {
  return request({
    method: "GET",
    url: "/song/url?id=" + songId + "&t=" + Date.now(),
  });
}
